package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap29 extends OSMap
	{
		public function OSMap29()
		{
			super();

			var ground:OSGround = new OSGround(0, 740, 300, 340, 0, false);
			ground.setNoErosionDown([240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254]);
			ground.setNoErosionLeft([0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 225, 240]);
			ground.setNoErosionRight([14, 29, 44, 59, 74, 89, 104, 119, 134, 149, 164, 179, 194, 209, 224, 239, 254]);
			ground.erode();
			add(ground);

			ground = new OSGround(300, 660, 220, 420, 0, false);
			ground.setNoErosionDown([220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230]);
			ground.setNoErosionLeft([44, 55, 66, 77, 88, 99, 110, 121, 132, 143, 154, 165, 176, 187, 198, 209, 220]);
			ground.setNoErosionRight([54, 65, 76, 87, 98, 109, 120, 131, 142, 153, 164, 175, 186, 197, 208, 219, 230]);
			ground.erode();
			add(ground);

			ground = new OSGround(520, 740, 120, 340, 0, false);
			ground.setNoErosionDown([96, 97, 98, 99, 100, 101]);
			ground.setNoErosionLeft([0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96]);
			ground.setNoErosionRight([53, 59, 65, 71, 77, 83, 89, 95, 101]);
			ground.erode();
			add(ground);

			ground = new OSGround(650, 740, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			var bouncePillar:OSEntity = new OSEntity(NOTHING, 680, 760); // +30 +20
			bouncePillar.makeGraphic(10, 160, 0xff000000);
			addBackground(bouncePillar);
			
			bouncePillar = new OSEntity(NOTHING, 800, 760); // +150 + 20
			bouncePillar.makeGraphic(10, 190, 0xff000000);
			addBackground(bouncePillar);

			ground = new OSGround(640, 900, 160, 180, 0, false);
			ground.setNoErosionDown([64, 65, 66, 67, 68, 69, 70, 71]);
			ground.setNoErosionLeft([0, 8, 16, 24, 32, 40, 48, 56, 64]);
			ground.setNoErosionRight([23, 31, 39, 47, 55, 63, 71]);
			ground.erode();
			add(ground);

			ground = new OSGround(800, 940, 140, 140, 0, false);
			ground.setNoErosionDown([42, 43, 44, 45, 46, 47, 48]);
			ground.setNoErosionLeft([0, 7, 14, 21, 28, 35, 42]);
			ground.setNoErosionRight([41, 48]);
			ground.erode();
			add(ground);

			ground = new OSGround(940, 1040, 20, 40, 0, false);
			ground.setNoErosionDown([1]);
			ground.setNoErosionLeft([0, 1]);
			ground.setNoErosionRight([0, 1]);
			ground.erode();
			add(ground);

		}
	}
}
